#pragma once

#include <Windows.h>
#include "SGD Wrappers\SGD_Math.h"
#include "SGD Wrappers\CSGD_TextureManager.h"

class Frame
{
	int xFramePos;
	int yFramePos;
	int frameWidth;
	int frameHeight;
	float timePerFrame;
	tVector2D anchorPoint;
	RECT colRect;
	RECT activeRect;
	std::string eventMessage;

public:
	Frame(void);
	~Frame(void);

	void Init(int x, int y, int width, int height, float time, tVector2D point, RECT cRect, RECT aRect, std::string mess);
	
	int GetXPos()			{return xFramePos;	}
	int GetYPos()			{return yFramePos;	}
	int GetWidth()			{return frameWidth;	}
	int GetHeight()			{return frameHeight;}
	float GetTime()			{return timePerFrame;}
	tVector2D GetAPoint()	{return anchorPoint;}
	RECT GetColRect()		{return colRect;	}
	RECT GetActiveRect()	{return activeRect;	}
	std::string GetEvent()  {return eventMessage;}
	RECT GetRect()
	{
		RECT tmp;
		tmp.top = yFramePos;
		tmp.bottom = tmp.top + frameHeight;
		tmp.left = xFramePos;
		tmp.right = tmp.left + frameWidth;

		return tmp;
	}
};

